﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using Modding;

namespace WebClient_test
{
    public class Mod : ModEntryPoint
    {

        public override void OnLoad()
        {
            Debug.Log("wc test");

            //var str = ModIO.DownloadString("http://xultimatex.gitee.io/webclient_test/");
            var str = ModIO.DownloadString(@"E:\Documents\VS Project\WebClient_test\WebClient_test\Resources\index.html");
        
            Debug.Log(str);

            var tes = JsonUtility.FromJson<test>(str);

            Debug.Log(tes.angle);
        }

        public class test
        {
            public  float angle = 0f;
        }
    }
}
